<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./PagesTemplate.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <h:form enctype="multipart/form-data">
            <p:growl id="messages" showDetail="true" showSummary="true" />
            <p:fileUpload value="#{uploadController.uploaded}" mode="simple"  />
            <p:commandButton value="Submit" ajax="false" actionListener="#{uploadController.upload()}" />
        </h:form>
    </ui:define>

</ui:composition>